//
//  PublicMacros.h
//  WXIM
//
//  Created by fusuwei on 14-5-27.
//  Copyright (c) 2014年 fusuwei. All rights reserved.
//


#ifndef PublicMacros_h
#define PublicMacros_h
//演示地址124.205.102.6 测试地址192.168.1.204  开发地址111.203.171.157
//---wx.com--修改为101.200.173.113


#warning messaege - - 注释掉－－－是否使用xml语wbxml压缩转换
//是否使用xml语wbxml压缩转换
//#define Send_Condensed_Src_Data   //打开发送和接受压缩解压开关



//FMDB
#define FMDBQuickCheck(SomeBool) { if (!(SomeBool)) { NSLog(@"Failure on line %d", __LINE__); abort(); } }

#define DATABASE_PATH  NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES)[0]


//#define DATABASE_PATH [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES)[0]stringByAppendingPathComponent:@"/wxChatIM.db"]


//用户信息
#define kMY_USER_ID           @"myUserId"
#define kMY_API_KEY           @"myApiKey"
#define kMY_USER_PASSWORD     @"myUserPassword"
#define kMY_USER_DESC         @"myUserDescription"
#define kMY_USER_NICKNAME     @"myUserNickname"
#define kMY_USER_Head         @"myUserHead"
#define kMY_USER_LoginName    @"myUserLoginName"




#if 1 //def DEBUG
//# define WXLog(fmt, ...) NSLog((@"[文件名:%s]\n" "[函数名:%s]\n" "[行号:%d] \n" fmt), __FILE__, __FUNCTION__, __LINE__, ##__VA_ARGS__);
# define WXLog(fmt, ...) NSLog((@"[函数名:%s]\n" "[行号:%d] \n" fmt), __FUNCTION__, __LINE__, ##__VA_ARGS__);
#else
# define WXLog(...);
# define NSLog(...);
#endif


#endif


